package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.HelloService;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    public static void main(String[] args) {
        String a = "aaaaaaaaaaaaaaaaaaaaabcd.jpg";
        System.out.println(a.substring(a.lastIndexOf(".")));
    }
}